QT -= gui core network

TEMPLATE = lib
CONFIG += staticlib
TARGET = llhttp

!win32 {
    VERSION = 2.7.1
}

include($$PWD/llhttp_qmake.pri)

#CONFIG(debug, debug|release) {
#    win32 {
#        DESTDIR = $$PWD/../../build/Debug/lib
#    } else {
#        DESTDIR = $$PWD/../../build/out/Debug
#    }
#} else {
#    win32 {
#        DESTDIR = $$PWD/../../build/Release/lib
#    } else {
#        DESTDIR = $$PWD/../../build/out/Release
#    }
#}

macx: {
    LIBS += -framework CoreFoundation # -framework CoreServices
    QMAKE_CXXFLAGS += -g -O0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu++0x -stdlib=libc++
}

unix:!macx {
    # This supports GCC 4.7
    QMAKE_CXXFLAGS += -g -O0 -lm -lpthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++0x
}

win32 {
    QMAKE_CXXFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    LIBS += \
        -llibuv \
        -lllhttp \
        -ladvapi32 \
        -liphlpapi \
        -lpsapi \
        -lshell32 \
        -lws2_32 \
        -luserenv \
        -luser32
}

INCLUDEPATH = $$unique(INCLUDEPATH)
HEADERS = $$unique(HEADERS)
SOURCES = $$unique(SOURCES)
